package com.hc.util;

import com.hc.util.snmp.APIServer;
import com.hc.util.snmp.SNMPConstens;
/**
 * 
 * 命令工具类
 * @author tiansl
 *
 */
public class OrderUtil {

	
	/**
	 * 
	 * ECCONTROLTEST设置参数
	 * @param str
	 */
	public static void ECCONTROLTEST_order(String str){
		
		try {
			APIServer.getSNMPService().set(SNMPConstens.EcDialWifiCommon.EcWifiSystem.EcDeviceInfo.ECCONTROLTEST,str);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	/**
	 * 
	 * 获取单片机的状态
	 * @return
	 */
	public static String  getEcMcuRealStatus(){
		
		try {
			return APIServer.getSNMPService().get(SNMPConstens.EcDialWifiCommon.EcWifiSystem.EcMcuStatus.ecMcuRealStatus).toString();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	/**
	 * 
	 * 获取单片机的状态
	 * @return
	 */
	public static String  getEcStepKey(){
		
		try {
			return APIServer.getSNMPService().get(SNMPConstens.EcDialWifiCommon.EcWifiSystem.EcMcuStatus.ecStepKey).toString();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
}
